package com.tangyuan.userauth.mapper;

import com.tangyuan.model.User;
import com.tangyuan.model.UserForget;
import com.tangyuan.model.UserLogin;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {

    int addUser(User userRegis);

    User getUserByPhoneNumber(String mobile);

    void updatePwdByMobile(UserForget userForget);

    void wxBindMobile(UserLogin userLogin);

    void setNewUser(User user1);

    void setNewUserLogin(UserLogin userLogin);

    User getUserByUserId(Integer userId);

    void updateUser(User user);

    User getUserByOpenId(String openId);

    User getUserByIosId(String openId);
}
